package com.txzhang.springcloud.orderservice.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import static org.apache.ibatis.type.JdbcType.TIMESTAMP;

@Data
@TableName("base_order")
public class Order implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    @TableField("good_code")
    private String goodCode;
    @TableField("good_count") //订单数量
    private Integer count;
    @TableField(jdbcType = TIMESTAMP, fill = FieldFill.INSERT, value = "order_time")
    private Date orderTime;
    @TableField("total")
    private Integer total;

}
